package com.cloudlead.common.lang.exception;

import com.cloudlead.common.lang.BizRuntimeException;
import com.cloudlead.common.lang.api.ResponseCode;

public class DataAccessException extends BizRuntimeException {

    /**
     *
     */
    private static final long serialVersionUID = -6632573846999731739L;

    public DataAccessException() {
        this(null);
    }

    public DataAccessException(String msg) {
        this(msg, null);
    }

    public DataAccessException(String msg, Throwable t) {
        this(0, msg, t);
    }

    public DataAccessException(int businessCode) {
        this(businessCode, null);
    }

    public DataAccessException(int businessCode, String msg) {
        this(businessCode, msg, null);
    }

    public DataAccessException(int businessCode, String msg, Throwable t) {
        super(msg, t, ResponseCode.DATA_ACCESS_ERROR, businessCode);
    }

}
